<?php
$db_class = pc_base::load_model('classmany_model');
$db_team = pc_base::load_model('team_model');
$db_people = pc_base::load_model('people_model');
?>
{template "member","header"}

<!-- header -->
<header class="header bg2 clearfix">
	<h3 class="fl"><a href="{MEMBER_PATH}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<span class="con">收藏课程</span>
</header>
<!-- / header -->
<div class="h_48"></div>

<script src="{JS_PATH2}tab.js"></script>
<script type="text/javascript">
$(function() {
	$(".main").all_tab({
		effect: "fade",
		trigger: "click",
		delayTime: 10
	});
})
</script>
<main class="main">
	<!-- <ul class="nav_course2 tab border1 clearfix">
		<li><a href="javascript:void(0);">精选课程</a></li>
		<li><a href="javascript:void(0);">在线课堂</a></li>
	</ul> -->
	<div class="h_10"></div>
	<!--免费课程-->
	<ul class="oListclass tab_con">
{loop $class1_arr $c_one}
{php $class=$db_class->pkhs($c_one[a_id])}
{php $team=$db_team->pkhs($class[one_team])}
{php $teacher=$db_people->pkhs($class[one_teacher])}
		<li>
			<div class="oListclasstime">
			<a href="{$class[url]}">
				<span class="time1 fl">{date('Y-m-d',$class[class_time1])}</span>
				<span class="peo fr">{$class[num_view]}</span>
			</a>
			</div>
			<div class="oListclasscon clearfix">
				<div class="pic1 fl"><img src="{$class[thumb]}"><em>席位：{$class[student_limit]}</em></div>
				<div class="oListclasscon_rg">
				<a href="{$class[url]}">
					<div class="oListclasscon_rg_t">{$class[title]}</div>
					<div class="oListclasscon_rg_name">{$team[title]}<?=v2html($team[v])?></div>
					<div class="oListclasscon_rg_teacher clearfix">
						<!-- <span class="fl">讲师：{$teacher[title]}</span> -->
						<div class="oListclasscon_rg_teacher_price fl">
							{if $class[price_cut]}
								<i>￥{price2cn($class[price_cut])}</i>
							{else}
								<i class="free">免费</i>
							{/if}
							<em>{price2cn($class[price_base])}</em>
						</div>
					</div>
					</a>
					<div class="class_close" alt="{$class[id]}"></div>
				</div>
			</div>
		</li>
{/loop}
	</ul>
	
	<!--微课堂-->
<!-- 	<ul class="oListclass tab_con">
{loop $class2_arr $c_one}
{php $class=$db_class->pkhs($c_one[a_id])}
{php $team=$db_team->pkhs($class[one_team])}
{php $teacher=$db_people->pkhs($class[one_teacher])}
		<li><a href="{$class[url]}">
			<div class="oListclasstime">
				<span class="time11 fl">{date('Y-m-d',$class[inputtime])}</span>
				<span class="peo fr">{$class[num_view]}</span>
			</div>
			<div class="oListclasscon clearfix">
				<div class="pic1 fl"><img src="{$class[thumb]}"><em>{$class[period]}</em></div>
				<div class="oListclasscon_rg">
					<div class="oListclasscon_rg_t">{$class[title]}</div>
					<div class="oListclasscon_rg_name">{$team[title]}<?=v2html($team[v])?></div>
					<div class="oListclasscon_rg_teacher clearfix">
						<!-- <span class="fl">讲师：{$teacher[title]}</span> -->
					<!-- 	<div class="oListclasscon_rg_teacher_study fl">{$class[price_jifen]}</div>
					</div>
				</div>
			</div>
		</a></li>
{/loop}
	</ul> --> 
</main>
<div class="h_48"></div>
<!--关闭按钮-->
<div class="close_con">
	<div class="close_con1">
		<div class="t1">您确定要删除这个课程收藏吗？</div>
		<ul class="close_con_list clearfix">
			<li><a href="javascript:;" id="btn_close">取消</a></li>
			<li><a href="javascript:;" id="btn_sure">确定</a></li>
		</ul>
	</div>
</div>

<script type="text/javascript">
	$(function(){
		var height_tc = $(window).height();
		var id=0;
		$(".close_con").css({
			height: height_tc + "px"
		});
		$(".class_close").click(function(){
			id=$(this).attr('alt');
			$(".close_con").show();
		});
		$("#btn_close").click(function(){			
			$(".close_con").hide();
		});
		$("#btn_sure").click(function(){			
			$(".close_con").hide();			
			$.post("index.php?m=member&c=like&a=del_like",{id:id},function(result){
				window.location.href=window.location.href;
			});
		});

	});

</script>
{template "member","footer_nav"}

{template "member","footer"}


